package com.hp.Model;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data @NoArgsConstructor
@AllArgsConstructor
@Builder
public class Lesson {
    private Long id;
    private Long sectionId;            // FK -> section.id
    private String title;
    private Integer orderNo;           // 章节内顺序唯一
    private String videoUrl;           // 可空
    private Integer durationSec;       // 秒
    private Boolean isFree;            // 试看
    private Date createdAt;
}
